<admintpl file="header" />
<style>
.panel{    float: left;
    width: 48%;
    min-height: 250px;
    margin: 10px 10px 27px 10px;}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#A" data-toggle="tab">数据统计</a></li>
			<li ><a href="#B" data-toggle="tab">最佳作品</a></li>
			<li ><a href="#C" data-toggle="tab">团队排名</a></li>
		</ul>
		
		<div class="tabbable">
			<div class="tab-content">
				<!-- 平均数 -->
				<div class="tab-pane active" id="A">
					<table class="table table-hover table-bordered table-list">
						<thead>
							<tr>
								<th width="20">团队</th>
								<foreach name='term' item='vo' key='k'>
									
									<th width="15%">{$k}</th>
								</foreach>
								<th width="20">平均值</th>
							</tr>
						</thead>
						<tbody>
							<foreach name='list' item='vo' key='k'>
								<tr>
									<td>{$k}</td>
									<volist name='vo' id='vod'>
										<foreach name='term' item='i' key='tk'>
										
											<eq name='tk' value='$vod[term_name]'>
												<td>{$vod['avg_score']}</td>
											</eq>
											
										</foreach> 
										 
									</volist>
									<td>{$vo.avg}</td>
								</tr>
							</foreach>
							<tr>
								<td>平均分</td>
								<volist name='avg' id='vo'>
									<td>{$vo}</td>
								</volist>
							</tr>
							
						
						</tbody>
					</table>				
				
				</div>
				<!-- 最佳作品-->
				<div class="tab-pane" id="B">
					<volist name='topThree' id='vo'>
						<div class='panel'>
						
							<div class='well'>{$vo.name}</div>
							<table class="table">
								<th>名次</th>
								<th>作品</th>
								<th>总分数</th>
								<th>平均分</th>
								<tbody>
								
									<volist name='vo[rank]' id='jo' key='k'>
										<tr>
											<td>{$k}</td>
											<td>{$jo.post_title}</td>
											<td>{$jo.sum_score}</td>
											<td>{$jo.avg_score}</td>
										</tr>
									</volist>
								</tbody>
								
							</table>
						</div>
					</volist>
				</div>
					
				
					<!-- 团队排名 -->
					<div class="tab-pane" id="C">
						<table class="table">
							<th>名次</th>
							<th>团队名称</th>
							<th>总分数</th>
							<th>平均分</th>
							<th>点评次数</th>
							<tbody>
							
								<volist name='teamRank' id='vo' key='k'>
									<tr>
										<td>{$k}</td>
										<td>{$vo.dep_name}</td>
										<td>{$vo.score_sum}</td>
										<td>{$vo.score_avg}</td>
										<td>{$vo.score_count}</td>
									</tr>
								</volist>
							</tbody>
							
						</table>
					
					</div>
				</div>
				
				
				
			
			</div>
		</div>
		

	</div>
</body>
</html>